package com.ruoyi.teaching.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单食物关系表对象 order_food_relation
 * 
 * @author ruoyi
 * @date 2025-05-08
 */
public class OrderFoodRelation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long oId;

    /** 食物名字 */
    @Excel(name = "食物名字")
    private String fName;

    /** 食物数量 */
    @Excel(name = "食物数量")
    private Long fQuantity;

    /** 总价格 */
    @Excel(name = "总价格")
    private BigDecimal totalPrice;

    public void setoId(Long oId) 
    {
        this.oId = oId;
    }

    public Long getoId() 
    {
        return oId;
    }

    public void setfName(String fName) 
    {
        this.fName = fName;
    }

    public String getfName() 
    {
        return fName;
    }

    public void setfQuantity(Long fQuantity) 
    {
        this.fQuantity = fQuantity;
    }

    public Long getfQuantity() 
    {
        return fQuantity;
    }

    public void setTotalPrice(BigDecimal totalPrice) 
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice() 
    {
        return totalPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("oId", getoId())
            .append("fName", getfName())
            .append("fQuantity", getfQuantity())
            .append("totalPrice", getTotalPrice())
            .toString();
    }
}
